package com.youan.log.modules.audit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 山东各地区攻击其他地区统计表
 */
@Data
@TableName("log_sd_attack_success")
public class SdAttackSuccess implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @JsonSerialize(using = ToStringSerializer.class)
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 主键
     */
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "日期")
    private LocalDate date;

    /**
     * 被攻击城市
     */
    @ApiModelProperty(value = "发起攻击攻击城市")
    private String attackCity;

    /**
     * 发起攻击的国家ity
     */
    @ApiModelProperty(value = "被攻击的国家")
    private String attackedCountry;

    /**
     * 发起攻击的国家
     */
    @ApiModelProperty(value = "被攻击的国家城市")
    private String attackedCity;

    /**
     * 被攻击次数
     */
    @ApiModelProperty(value = "攻击次数")
    private int attackNum;
}
